package com.xunyin.utils.constants;

/**
 * @author: Administration
 */
public enum ErrorEnum {
    /*
     * 错误信息
     * */
    E_400("400", "请求处理异常，请稍后再试"),
    E_500("500", "请求方式有误,请检查 GET/POST"),
    E_501("501", "请求路径不存在"),
    E_502("502", "权限不足"),
    E_10008("10008", "角色删除失败,尚有用户属于此角色"),
    E_10009("10009", "手机号码已存在"),
    E_20011("20011", "登陆已过期,请重新登陆"),
    E_30011("30011", "验证码错误"),
    E_90003("90003", "缺少必填参数"),
    E_90004("90004", "服务异常,数据为空"),
    E_90005("90005", "缺少参数"),
    E_90006("90006", "代理商APPID未配置"),
    E_100001("100001", "设备注册失败!"),
    E_100002("100002", "设备删除失败!"),
    E_100003("100003", "设备信息修改失败!"),
    E_100004("100004", "操作失败!"),
    E_100005("100005", "查无订单数据!"),
    E_100006("100005", "时间未到开始进入时间"),
    E_100013("100013", "距离服务15分钟内不可取消"),
    E_100014("100014", "设备码已经存在"),
    E_100015("100015", "商品库存为空"),
    E_100016("100016", "图片上传失败"),
    E_100017("100017", "已下架"),
    E_100018("100018", "领取失败"),
    E_100019("100019", "设备未配置，请联系管理员"),
    E_100020("100020", "开门失败"),
    E_100021("100021", "包间使用中"),
    E_100022("100022", "补货失败"),
    E_100023("100023", "您已参与过活动了！"),
    E_100024("100024", "订单已结束！"),
    E_100025("100025", "操作失败，请稍后重试！"),
    E_100026("100026", "无效卡密"),

    ;


    private String errorCode;

    private String errorMsg;

    ErrorEnum() {
    }

    ErrorEnum(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
